using System.Data.Entity.ModelConfiguration;

public class JobMap : EntityTypeConfiguration<Job>
{
	public JobMap()
	{
        HasKey(t => t.Id);
        HasRequired(t => t.Task)
            .WithMany(t => t.Jobs)
            .HasForeignKey(d => d.TaskId);
	}
}